package com.jinsi.service.tang.iml;

import com.jinsi.mapper.tang.CheckMapper;
import com.jinsi.pojo.Examine;
import com.jinsi.service.tang.CheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 审核商品详情列表
 * @author 唐文博
 * @Date 2022-08-18
 */
@Service
@Transactional
public class CheckServiceImpl implements CheckService {
    @Autowired
    private CheckMapper checkMapper;

    /**
     * 查看表，全查
     * @param commodityId
     * @return
     */
    @Override
    @Transactional(readOnly = true)
    public List<Examine> getCheck(Integer commodityId) {
        return checkMapper.getCheck(commodityId);
    }
}
